package com.youkeyi.ddy.cloud.common.api.basic.pub.position;

import com.youkeyi.ddy.cloud.common.api.basic.pub.position.dto.PublicPositionListCloudDto;
import com.youkeyi.ddy.cloud.common.api.basic.pub.position.param.PublicPositionCreateCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.pub.position.param.PublicPositionDeleteCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.pub.position.param.PublicPositionQueryCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.pub.position.param.PublicPositionUpdateCloudParam;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * PublicPositionCloudServiceFallback
 *
 * @Author liuxiawang
 * @Date 2024/2/21 11:28 AM
 * @Location shenzhen.china
 */
@Component
@RequestMapping("/public/position/fallback")
public class PublicPositionCloudServiceFallback implements PublicPositionCloudService {

    @Override
    public PublicPositionListCloudDto query(PublicPositionQueryCloudParam param) {
        return new PublicPositionListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent create(PublicPositionCreateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent update(PublicPositionUpdateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent delete(PublicPositionDeleteCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }
}
